home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 134 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: emmi.physik.tu-berlin.DE!not-for-mail
  2. From: Peter Kelm <kelm@emmi.physik.TU-Berlin.DE>
  3. Newsgroups: comp.sys.m68k
  4. Subject: how to convert locical to physical address on 68040
  5. Date: Mon, 22 Jan 1996 21:21:13 +0100
  6. Message-ID: <Pine.SOL.3.91.960122210823.17385A-100000@emmi.physik.TU-Berlin.DE>
  7. NNTP-Posting-Host: emmi.physik.tu-berlin.de (130.149.40.97)
  8. Mime-Version: 1.0
  9. Content-Type: TEXT/PLAIN; charset=US-ASCII
  10. X-Access: 16 917
  11.  
  12. Hello,
  13. I need to convert a given logical address into a physical one (I am 
  14. programming on a macintosh but the code of course is only processor 
  15. dependent). The problem behind is to examine how the MacOS has mapped 
  16. itself (to get NetBSD un*x running on a 040). Read all of the literature I 
  17. could get (for example M68040 Users Manual). But my code still fails. 
  18.  
  19. This is what I tried:
  20. 1) use "ptestr (a0)" wit the logical address in a0. The get the mmusr 
  21. (movec mmusr,d0), extract the address part and put it together with a 
  22. part of the logical address to form the physical.
  23. 2) -get mmu root pointer
  24.    -do the table walk by hand (get TIA part - form root level table 
  25. descriptor, get TIB part, ...)
  26.  
  27. The processor is in supervisor mode.
  28. Has anyone out there a working address conversion code or a URL pointer 
  29. to such a source code fragment ???
  30.  
  31. Thanks                                   Peter
  32.  
  33.          --- beam me up Scotty, this planet sucks ---                      
  34.                                                         Plan B
  35. Peter Kelm (kelm@physik.tu-berlin.de)
  36.  
  37. Technical University Berlin
  38. Physics Department
  39.  
  40.